<?php
include_once( "inc/config.php" );
include_once( "inc/config_db.php" );
include_once( "inc/linb.php" );
include_once( "inc/template.php" );
$location = location( "notice","" );
define( "IN", TRUE );
$tpl_refresh_time = $skincache;
$tpl_default_dir = dirname( __FILE__ )."/templates/".$skindir."";
$t = new template( );
$t->tpl_default_dir = $tpl_default_dir;
$t->tpl_refresh_time = $tpl_refresh_time;
$noticeid = verify_id( $_GET['id'] );
$strSql = "SELECT * FROM tun2_notice WHERE id =$noticeid";
$db->query( $strSql );
if ( $db->next_record( ) )
{
				$title = $db->Record['title'];
				$content = $db->Record['content'];
				$date = $db->Record['time'];
}
else
{
				echo "<script language=javascript>alert(\"对不起！没有您要找的公告！\");window.location='".$webdir."index.php'</script>";
				exit( );
}
$formovie = "onclick=\"openFormovie()\"";
include( $t->tpl( "notice" ) );
echo "<script type=\"text/javascript\" src=\"".$webdir."inc/ajaxrequest.js\"></script>\n";
echo formovie( );
?>
